package com.cml.dm.admin.service.impl;

import com.cml.dm.admin.entity.DmExeLogger;
import com.cml.dm.admin.entity.DmMetadata;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class BackupTaskExecutorService extends AbstractTaskExecutorService{

    private static final Logger logger = LoggerFactory.getLogger(BackupTaskExecutorService.class);

    @Autowired
    private BackupAdapter backupAdapter;
    /**
     * todo 根据dmMetadata链条进行导出数据
     *  修改dmExeLogger状态
     *
     * @param dmMetadata
     * @param dmExeLogger
     * @param extParameter
     */
    @Override
    public void doTask(DmMetadata dmMetadata, DmExeLogger dmExeLogger, Object extParameter) {
        backupAdapter.exec(dmMetadata,dmExeLogger,extParameter);
    }

}
